package com.curso.examples.spring.aop.dao.impl;

import org.springframework.stereotype.Repository;

import com.curso.examples.spring.aop.dao.intf.PersonaDAO;
import com.curso.examples.spring.aop.model.Persona;

@Repository("personaDao")
public class PersonaDAOImpl implements PersonaDAO {

	@Override
	public Persona cargar(Long id) {
		System.out.println("Loading person with id {"+id+"}");
		Persona p = new Persona();
		p.setAge(22);
		p.setFirstName("Maria");
		p.setLastName("Lopez-"+id);
		return p;
	}

	@Override
	public void grabar(Persona persona) {
		System.out.println("");
	}

	
}
